home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
vdtwn
/
tvf
/
asmhd6
/
tw1hd6
/
koma.hd6
< prev
next >
Wrap
Text File
|
1993-07-08
|
1KB
|
83 lines
ds_name db '\KOMEI\実物\tvf_prg\KOMA',0
paint_wd:
re_paint:
mouse_in:
ret
be_called:
YOMU eax,300
push ebp
mov ebp,eax
;===== koma-okuri mode =====
align 4
#koma:
call vsync_check
mov dx,0440h ;SETTING CTRL0
mov al,28
out dx,al
mov dx,0442h
mov ax,1100000010000101b
out dx,ax
call vsync_check
mov dx,0440h ;SETTING CTRL0
mov al,28
out dx,al
mov dx,0442h
mov ax,1100000001000101b
out dx,ax
mov ecx,ebp ; ebp -- wait
#k_wait: call vsync_check
loop #k_wait
mov ax,0901h
int 90h
xor dh,0FFh
je #koma
pop ebp
ret
;===== vsync check =====
align 4
vsync_check:
#vsc_1: mov dx,0440h
mov al,30
out dx,al
add dx,2
in ax,dx
test ah,00000100b
jnz short #vsc_1
align 4
#vsc_2: mov dx,0440h
mov al,30
out dx,al
add dx,2
in ax,dx
test ah,00000100b
jz short #vsc_2
ret
look_me:
call sub_esi
dd 0,0
dw 0,0,80,42,20,30,15,1,0,0